# -*- coding: utf-8 -*-
from django.conf.urls.defaults import *
from dnu_schedule.views import show_schedule
from dnu_schedule.views import show_schedule_by_group_name
from django.conf import settings


urlpatterns = patterns('',
    (r'schedule/$', show_schedule),

    (ur'schedule/([А-Яа-я][А-Яа-я]-\d\d[А-Яа-я]?-\d)/$', show_schedule_by_group_name),
)


if settings.DEBUG:
    urlpatterns += patterns('',
        (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/home/artem/programming/code/python/fpm_schedule/dnu_schedule/static'}),
        #(r'^'+settings.STATIC_URL+r'(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}),
    )